<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */
if(!empty($_GET['id'])){
	$set = $GLOBALS['db']->query("UPDATE {prefix}users SET `group` = '0' WHERE `group` = '".intval($_GET['id'])."'");
    $query = $GLOBALS['db']->query("DELETE FROM {prefix}users_groups WHERE id = '".intval($_GET['id'])."'");
		echo '<h1>'.USER_GROUP_DELETED.' ! <strong>'.(int)$set->num_rows.'</strong> '.USER_GROUP_DELETED_COUNT.'.</h1>';
		echo '<meta http-equiv="refresh" content="2;url=index.php?p=components&name=user">';
}
?>